/*
 *  Netzpult - Your desk on the web
 *  Copyright (C) 2011  Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/
 */

package de.uhilger.netzpult.shared;

import de.uhilger.baselink.DBColumn;
import de.uhilger.baselink.DBPrimaryKey;
import de.uhilger.baselink.DBTable;

/**
 * @author Copyright (c) Ulrich Hilger, http://uhilger.de
 * @author Published under the terms and conditions of
 * the <a href="http://www.gnu.org/licenses/" target="_blank">GNU General Public License</a>
 */
@DBTable(name = "webfiles.folder_documents")
@DBPrimaryKey({"fo_id", "dc_id"})
public class FolderDocument {

	private int folderId;
	private int documentId;
	private int folderOrder;
	
	public FolderDocument() {
		super();
	}
	
	public FolderDocument(int folderId, int docId, int order) {
		this();
		this.folderId = folderId;
		this.documentId = docId;
		this.folderOrder = order;
	}

	@DBColumn(name = "fo_id")
	public int getFolderId() {
		return folderId;
	}

	public void setFolderId(int folderId) {
		this.folderId = folderId;
	}

	@DBColumn(name = "dc_id")
	public int getDocumentId() {
		return documentId;
	}

	public void setDocumentId(int documentId) {
		this.documentId = documentId;
	}

	@DBColumn(name = "fo_order")
	public int getFolderOrder() {
		return folderOrder;
	}

	public void setFolderOrder(int folderOrder) {
		this.folderOrder = folderOrder;
	}
	
	
	
	
}
